authenticate

abstract fun authenticate(email: String, password: String, onResult: (Throwable?) -> Unit)

Authenticate a user with their email and password. This logs the user in by validating their credentials against Firebase.

Parameters

email

The email address of the user.

password

The password associated with the user's email.

onResult

The callback function to handle the result of the authentication. It receives an optional Throwable indicating the error, if any.